<?php
ini_set('include_path', '.:/home/bpedro/pear/lib/php:/usr/local/php5/lib/php');

class DeliciosoMetaWeblog {

     /**
      * Get all users and their blogs.
      *
      * @param string appkey
      * @param string username
      * @param string password
      * @return mixed list of blogs
      */
    public static function getUsersBlogs ($appkey, $username, $password)
    {

        $usersBlogs[] = array('blogid' => 'Delicioso',
                              'url' => 'http://remix.wevel.com/delicioso/',
                              'name' => 'Delicioso');
        return $usersBlogs;
    }

    /**
     * Get all categories for a given blog.
     *
     * @param string blogid
     * @param string username
     * @param string password
     * @return mixed list of categories
     */
    public static function getCategories ($blogid, $username, $password)
    {
        return array();
    }
}

require_once 'XML/RPC2/Server.php';
$server = XML_RPC2_Server::create('DeliciosoMetaWeblog', array('prefix' => 'blogger.'));
$server->handleCall();
?>
